package com.ftf.tp.common.constants;

/**
 * redis缓存前缀常量
 *
 * @author tanghao
 * @date 2021/11/11
 */
public class RedisConstant {

    /**
     * 当前登录用户信息缓存前缀
     */
    public static final String TP_USER_INFO = "tp_user_info-";

    /**
     * 保存文章被浏览数量总数的key
     */
    public static final String REDIS_KEY_ARTICLE_BROWSE_COUNT = "REDIS_KEY_ARTICLE_BROWSE_COUNT-";

    /**
     * 保存文章被浏览数量总数的key -lock
     */
    public static final String REDIS_KEY_ARTICLE_BROWSE_COUNT_LOCK = "REDIS_KEY_ARTICLE_BROWSE_COUNT_LOCK-";

    /**
     * 用户浏览文章记录的key
     */
    public static final String MAP_KEY_USER_BROWSE_RECORD = "MAP_KEY_USER_BROWSE_RECORD-";

    /**
     * 文章点赞记录key
     */
    public static final String REDIS_KEY_ARTICLE_SUPPORT = "REDIS_KEY_ARTICLE_SUPPORT-";

    /**
     * 文章点赞数key
     */
    public static final String REDIS_KEY_ARTICLE_SUPPORT_SUM = "REDIS_KEY_ARTICLE_SUPPORT_SUM-";

    /**
     * 文章点赞数key -lock
     */
    public static final String REDIS_KEY_ARTICLE_SUPPORT_SUM_LOCK = "REDIS_KEY_ARTICLE_SUPPORT_SUM_LOCK-";

    /**
     * 文章评论数key
     */
    public static final String REDIS_KEY_ARTICLE_COMMENT_SUM = "REDIS_KEY_ARTICLE_SUPPORT_SUM-";

    /**
     * 文章收藏数key
     */
    public static final String REDIS_KEY_ARTICLE_COLLECTION_SUM = "REDIS_KEY_ARTICLE_COLLECTION_SUM-";


    /**
     * 点赞/订阅/关注重复消息key
     */
    public static final String REDIS_KEY_SUPPORT_REPEAT = "REDIS_KEY_SUPPORT_REPEAT-";

    /**
     * 文章热榜
     */
    public static final String REDIS_KEY_ARTICLE_HOT_RANK = "REDIS_KEY_ARTICLE_HOT_RANK-";

    /**
     * BLOG热度值
     */
    public static final String REDIS_KEY_BLOG_HOT_VALUE = "REDIS_KEY_BLOG_HOT_VALUE-";

    /**
     * BLOG热度值 lock
     */
    public static final String REDIS_KEY_BLOG_HOT_VALUE_LOCK = "REDIS_KEY_BLOG_HOT_VALUE_LOCK-";

    /**
     * 文章配置
     */
    public static final String REDIS_KEY_ARTICLE_CONFIGURE = "REDIS_KEY_ARTICLE_CONFIGURE-";

    /**
     * 文章配置 lock
     */
    public static final String REDIS_KEY_ARTICLE_CONFIGURE_LOCK = "REDIS_KEY_ARTICLE_CONFIGURE_LOCK-";

    /**
     * 评论
     */
    public static final String REDIS_KEY_ARTICLE_COMMENT = "REDIS_KEY_ARTICLE_COMMENT-";

    /**
     * 评论回复
     */
    public static final String REDIS_KEY_ARTICLE_COMMENT_REPLY = "REDIS_KEY_ARTICLE_COMMENT_REPLY-";

    /**
     * 专栏文章数
     */
    public static final String REDIS_KEY_COLUMN_ARTICLE_NUM = "REDIS_KEY_COLUMN_ARTICLE_NUM-";
}
